package com.project.bean.InventoryManagement;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;
import java.util.List;

//出库信息表

@TableName("move_info")
public class MoveBean {


    @TableId(value = "move_id",type = IdType.AUTO)
    private Integer moveId;	//出库编号
    @TableField("move_day")
    private LocalDate moveDay = LocalDate.now();	//出库日期
    @TableField("move_class")
    private String moveClass;	//领用小班
    @TableField("move_user")
    private String moveUser;	//出库人


    @TableField(exist = false)
    private List<AgentiaBean> agentiaBeanList; //药品 器械集合

    @TableField(exist = false)
    private DetailsBean detailsBean; //数量




    public MoveBean() {
    }

    public MoveBean(Integer moveId, LocalDate moveDay, String moveClass, String moveUser, List<AgentiaBean> agentiaBeanList) {
        this.moveId = moveId;
        this.moveDay = moveDay;
        this.moveClass = moveClass;
        this.moveUser = moveUser;
        this.agentiaBeanList = agentiaBeanList;
    }

    public MoveBean(LocalDate moveDay, String moveClass, String moveUser, List<AgentiaBean> agentiaBeanList) {
        this.moveDay = moveDay;
        this.moveClass = moveClass;
        this.moveUser = moveUser;
        this.agentiaBeanList = agentiaBeanList;
    }

    public MoveBean(LocalDate moveDay, String moveClass, String moveUser) {
        this.moveDay = moveDay;
        this.moveClass = moveClass;
        this.moveUser = moveUser;
    }

    public MoveBean(String moveClass, String moveUser) {
        this.moveClass = moveClass;
        this.moveUser = moveUser;
    }

    public MoveBean(String moveClass, String moveUser, List<AgentiaBean> agentiaBeanList) {
        this.moveClass = moveClass;
        this.moveUser = moveUser;
        this.agentiaBeanList = agentiaBeanList;
    }

    public MoveBean(Integer moveId, List<AgentiaBean> agentiaBeanList) {
        this.moveId = moveId;
        this.agentiaBeanList = agentiaBeanList;
    }

    public Integer getMoveId() {
        return moveId;
    }

    public void setMoveId(Integer moveId) {
        this.moveId = moveId;
    }

    public LocalDate getMoveDay() {
        return moveDay;
    }

    public void setMoveDay(LocalDate moveDay) {
        this.moveDay = moveDay;
    }

    public String getMoveClass() {
        return moveClass;
    }

    public void setMoveClass(String moveClass) {
        this.moveClass = moveClass;
    }

    public String getMoveUser() {
        return moveUser;
    }

    public void setMoveUser(String moveUser) {
        this.moveUser = moveUser;
    }

    public List<AgentiaBean> getAgentiaBeanList() {
        return agentiaBeanList;
    }

    public void setAgentiaBeanList(List<AgentiaBean> agentiaBeanList) {
        this.agentiaBeanList = agentiaBeanList;
    }

    public DetailsBean getDetailsBean() {
        return detailsBean;
    }

    public void setDetailsBean(DetailsBean detailsBean) {
        this.detailsBean = detailsBean;
    }



    @Override
    public String toString() {
        return "MoveBean{" +
                "moveId=" + moveId +
                ", moveDay=" + moveDay +
                ", moveClass='" + moveClass + '\'' +
                ", moveUser='" + moveUser + '\'' +
                ", agentiaBeanList=" + agentiaBeanList +
                '}';
    }
}
